<div class="employees view">
    <h2><?php  __('Empleado');?></h2>
    <dl><?php $i = 0;
        $class = ' class="altrow"';?>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $employee['Employee']['first_name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Apellido'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $employee['Employee']['last_name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dni'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $employee['Employee']['dni']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Teléfono'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $employee['Employee']['phone_number']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dirección'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $employee['Employee']['address']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha de Nacimiento'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php
            if($employee['Employee']['birthday']) {
                echo date('d/m/Y', strtotime($employee['Employee']['birthday']));
            }
            ?>
            &nbsp;
        </dd>
    </dl>
</div>
<div class="actions specific">
    <h3><?php __('Acciones'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Editar Empleado', true), array('action' => 'edit', $employee['Employee']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('Eliminar Empleado', true), array('action' => 'delete', $employee['Employee']['id']), null, sprintf(__('Seguro que desea eliminar este Empleado?', true), $employee['Employee']['id'])); ?></li>
    </ul>
</div>
